package utils;

import cn.hutool.core.lang.Console;
import cn.hutool.http.Header;
import cn.hutool.http.HttpRequest;

import java.util.HashMap;

/**
 * Created By  醉美柳舞之众星捧月
 *
 * @author 宋贤坤
 * @date 2019/4/19 19:35
 */
public class IpUtils {

    private static final String URL = "http://ip.taobao.com/service/getIpInfo.php";

    public static void main(String[] args) {
        HashMap<String, Object> map = new HashMap<>(2);
        map.put("ip", "35.220.224.255");
        String result = HttpRequest.post(URL).header(Header.USER_AGENT, URL).form(map).timeout(1500).execute().body();
        Console.error(result);
        System.out.println("增加新分支  la ");
    }
}
